package com.ming.sportdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.sportdemo.bean.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public interface OrderService extends IService<Order> {
    int getOrderCounts(String userId);
    public List<Order> getAllOrder(@Param("userId")String username, @Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
    public int addOrder(Order order);
    public int deleteOrder(@Param("orderId") int orderId);
    public int updateOrder(Order order);
    int updateOrderState(@Param("orderId")int orderId);
    public int updateOrderStates(@Param("orderId") Integer orderId,@Param("orderState") Boolean orderState);
}
